package com.test3.bean;

/**
 * 消费者
 *
 * @author Cc
 * 2024-03-12
 */
public class Customer {
    private Pay pay;

    public Customer() {
    }

    public Customer(Pay pay) {
        this.pay = pay;
    }

    public Pay getPay() {
        return pay;
    }

    public void setPay(Pay pay) {
        this.pay = pay;
    }

    public void consume() {
        this.pay.pay();
    }
}
